from django.db import models
from django.contrib.auth.models import AbstractUser
# Create your models here.

class Users(AbstractUser):
    mobile = models.CharField(verbose_name='手机号', max_length=11, unique=True, help_text='手机号')
    name = models.CharField(verbose_name='姓名', max_length=10, help_text='真实姓名')
    nickname = models.CharField(verbose_name='昵称', max_length=20, unique=True , help_text='昵称')
    def __str__(self):
        return self.username



